/**
 * 人员调岗单 http 请求
 */
import http from '@/utils/request'

export const gainBillNo = (data) => {
  return http.get('/api/erp/oa/doc/erpOaDocReferenceBill/getBillNo', data)
}

export const add = (data) => {
  return http.post('/api/erp/oa/doc/erpOaDocReferenceBill/add', data)
}

export const edit = (data) => {
  return http.put('/api/erp/oa/doc/erpOaDocReferenceBill/edit', data)
}

export const info = (data) => {
  return http.get('/api/erp/oa/doc/erpOaDocReferenceBill/queryById', data)
}

export const queryProvisionBroadList = (data) => {
  return http.get('/api/erpmng/sys/category/loadTreeRoot', data)
}

// 根据Code查询关联档案基础表&关联项目存档清单类别
export const queryByCode = (params) => {
  return http.get('/api/erpmng/sys/category/queryByCode', params)
}